//
//  Session.h
//  SHPE Conference Companion
//
//  Created by Richard Kirk on 3/25/11.
//  Copyright (c) 2011 __MyCompanyName__. All rights reserved.
//

/*
 API example:
 
 <?xml version="1.0" encoding="UTF-8"?>
<conference-session xmlns="http://openshpe.shpe.org/conference" xmlns:xlink="http://www.w3.org/1999/xlink" id="1" title="Registration">
     <start-time>03/17/2011 04:00:00</start-time>
     <end-time>03/17/2011 10:00:00</end-time>
     <description>Conference Registration</description>
     <location venue-id="1" room="Lobby" xlink:href="http://openshpe.staging.shpe.org/conference/v1/venue/1/"/>
     <session-type id="4" xlink:href="http://openshpe.staging.shpe.org/conference/v1/session-type/4/"/>
     <tracks/>
     <speakers/>
     <materials/>
     <conference id="100" xlink:href="http://openshpe.staging.shpe.org/conference/v1/conference/100/"/>
</conference-session>
 
 */


#import <Foundation/Foundation.h>
#import <CoreData/CoreData.h>

@class Conference;

@interface Session : NSManagedObject <NSXMLParserDelegate> {
@private
}
@property (nonatomic, retain) NSNumber * id;
@property (nonatomic, retain) NSString * title;
@property (nonatomic, retain) NSDate * startTime;
@property (nonatomic, retain) NSDate * endTime;
@property (nonatomic, retain) NSString * desc;
@property (nonatomic, retain) NSString * room;
@property (nonatomic, retain) NSManagedObject * type;
@property (nonatomic, retain) NSSet* tracks;
@property (nonatomic, retain) Conference * conference;
@property (nonatomic, retain) NSManagedObject * venue;
@property (nonatomic, retain) NSSet * speakers;

@property (nonatomic, retain) id parent;
@property (nonatomic, retain) NSXMLParser *xmlParser;
@property (nonatomic, retain) NSMutableString *xmlStringBuilder;
@property (nonatomic, retain) NSDateFormatter *dateFormatter;




-(id)initWithParser:(NSXMLParser *)parser attributeDict:(NSDictionary *)attributes parent:(id)parentObject;
-(id)initWithSessionId:(int) speakerId;












@end
